package com.larry.spring;

import com.larry.spring.bean.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ProjectName spring
 * @Author larry
 * @Date 15:32 2021/9/2
 * @Description 测试类
 **/
public class MainTest {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");
		Person person = context.getBean(Person.class);
		System.out.println(person);
	}

}
